{% extends "base.html" %}
{% load url from future %}
{% block navigation %}
{% endblock %}

{% block content %}
<table id="vertTable">
  <tr>
    <td>
      <div id="loginForm">
	<h2>Welcome to SIF</h2>
	  <p>
	  {% if form.errors %}
	  Your username or password is incorrect.
          {% endif %}
	  </p>
          <form action="{% url 'django.contrib.auth.views.login' %}" method="POST">
	    {% csrf_token %}
	    
	    <input type="hidden" name="next" value="{{ next }}" />
	    {{ form.username.label_tag }}
	    {{ form.username }}
	    <br />
	    {{ form.password.label_tag }}
	    {{ form.password }}
	    <br />
	    <input type="submit" value="Login" />
          </form>
	  <a href="/base/login/register">Create an Account</a>
      </div>
    </td>
  </tr>
</table>
{% endblock %}